/**
 * @(#) AcquisitionServiceImpl.java
 *
 * @author lihg
 * @version V1.0 2013-10-1
 *
 * Copyright (C) 2010,2013 , Lihg
 */

/**
 * 
 */
package cn.com.dshome.acquisition.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.dshome.acquisition.exception.AcquisitionException;
import cn.com.dshome.acquisition.service.AcquisitionFactory;
import cn.com.dshome.acquisition.service.IAcquisitionService;
import cn.com.dshome.acquisition.vo.BaseInformation;

/**
 * 
 * Purpose:采集服务实现类
 * 
 * @author lihg
 * @see
 * @since
 */
@Service("acquisitionService")
public class AcquisitionServiceImpl implements IAcquisitionService {

	@Autowired
	private AcquisitionFactory acquisitionFactory ;

	/* (non-Javadoc)
	 * @see cn.com.dshome.acquisition.service.IAcquisitionService#listInformations(cn.com.dshome.acquisition.vo.BaseInformation)
	 */
	@Override
	public <T extends BaseInformation> List<T> listInformations(Class<T> clazz)
	throws AcquisitionException {
		return acquisitionFactory.getAcquisition(clazz).listInformation(clazz);
	}

}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * 
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2013-10-1 下午06:08:41 lihg 创建版本
 */